using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WeaponSortingManager:MonoBehaviour {
	Mob mob;
	SpriteRenderer spriteRenderer;
	private void Start() {
		mob=GetComponent<Mob>();
		spriteRenderer=GetComponent<SpriteRenderer>();
		}

	private void Update() {
		spriteRenderer.sortingOrder=mob.isBackward ? 10 : 0;
	}

}
